Telegram Group & Telegram Channel
# پاسخ تمرین شماره 1
num1 = float(input("Input Number : "))
op = input("Input Operator : ")
num2 = float(input("Input Number : "))
choices = {
'+': num1 + num2,
'-': num1 - num2,
'*': num1 * num2,
'/': num1 / num2,
}
result = choices.get(op, 0)
# نمایش پاسخ به همراه عبارت
print(str(num1) + " " + op + " " + str(num2) + " = " + str(result))



tg-me.com/python12/1303
Create:
Last Update:

# پاسخ تمرین شماره 1
num1 = float(input("Input Number : "))
op = input("Input Operator : ")
num2 = float(input("Input Number : "))
choices = {
'+': num1 + num2,
'-': num1 - num2,
'*': num1 * num2,
'/': num1 / num2,
}
result = choices.get(op, 0)
# نمایش پاسخ به همراه عبارت
print(str(num1) + " " + op + " " + str(num2) + " = " + str(result))

BY پایتون / python


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python12/1303

View MORE
Open in Telegram


پایتون python Telegram | DID YOU KNOW?

Date: |

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

پایتون python from cn


Telegram پایتون / python
FROM USA